package com.ruoyi.djb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 事由管理对象 djb_reason
 * 
 * @author xxd
 * @date 2024-07-15
 */
public class DjbReason extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private Integer districtId;

    /** 事由 */
    @Excel(name = "事由")
    private String reason;

    /** 类型 0系统 1自定义 */
    @Excel(name = "类型 0系统 1自定义")
    private Integer type;

    /** 开关 0关闭 1开启 */
    @Excel(name = "开关 0关闭 1开启")
    private Integer isOpen;

    private Integer ranks;

    public Integer getRanks() {
        return ranks;
    }

    public void setRanks(Integer rank) {
        this.ranks = rank;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDistrictId(Integer districtId) 
    {
        this.districtId = districtId;
    }

    public Integer getDistrictId() 
    {
        return districtId;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setIsOpen(Integer isOpen)
    {
        this.isOpen = isOpen;
    }

    public Integer getIsOpen()
    {
        return isOpen;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("districtId", getDistrictId())
            .append("reason", getReason())
            .append("type", getType())
            .append("switch", getIsOpen())
            .toString();
    }
}
